package com.heima.apis.wemedia;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.pojos.WmUser;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("leadnews-wemedia")
public interface IWemediaClient {

    @GetMapping("/api/v1/channel/list")
    public ResponseResult getChannels();

    @PostMapping("api/v1/wemedia/user/{id}")
    WmUser getWmUser(@PathVariable("id") Integer id);

    @PostMapping("api/v1/wemedia/user/update")
    void update(@RequestBody WmUser wmUser);
    @PostMapping("api/v1/wemedia/user/save")
    void save(@RequestBody WmUser wmUser);
}